package fw.rpc.dubbo.seria.hession;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;

import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;

@Slf4j
public class PersonSerializble extends PersonParent implements Serializable {

    private static final long serialVersionUID = -842029427676826563L;
    public static String name;
    private Integer age;
    private transient int workDay = 5;
    private String fClub;
    private static String fClub3;

    public PersonSerializble( Integer superAge,Integer age  ) {super(1,superAge);
        this.age = age;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public static String getName() {
        return name;
    }

    public static void setName(String name) {
        PersonSerializble.name = name;
    }

    @Override
    public Integer getAge() {
        return age;
    }

    @Override
    public void setAge(Integer age) {
        this.age = age;
    }

    public int getWorkDay() {
        return workDay;
    }

    public void setWorkDay(int workDay) {
        this.workDay = workDay;
    }

    public String getfClub() {
        return fClub;
    }

    public void setfClub(String fClub) {
        this.fClub = fClub;
    }

    public static String getfClub3() {
        return fClub3;
    }

    public static void setfClub3(String fClub3) {
        PersonSerializble.fClub3 = fClub3;
    }

    public static Logger getLog() {
        return log;
    }

    @Override
    public String toString() {
        return "PersonSerializble{" +
                "age=" + age +
                ", workDay=" + workDay +
                ", fClub='" + fClub + '\'' +
                ", fClub3='" + fClub3 + '\'' +
                '}';
    }
}